package com.bobi.ecofavor.service;

import com.bobi.ecofavor.common.utils.JsonResponse;
import com.bobi.ecofavor.model.domain.Goods;
import com.bobi.ecofavor.model.domain.Order;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bobi.ecofavor.model.domain.User;

/**
 * <p>
 * 订单 服务类
 * </p>
 *
 * @author wenyuan
 * @since 2023-10-21
 */
public interface OrderService extends IService<Order> {

    JsonResponse getUserOrderListPage(Integer userId, Integer pageSize, Integer page, Integer status);

    JsonResponse updateOrderStatus(Integer id, Integer status);

    JsonResponse getUserOrderById(Integer userId, Integer orderId);

    JsonResponse insertOrder(User user, Integer goodsId, Integer goodsNum);

    JsonResponse useCouponInOrder(Integer couponId, Integer orderId);

    JsonResponse payBill(Integer orderId);

    JsonResponse oneMore(Integer id);
}
